
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class TargetLoginCfg : public ManualSingleton <TargetLoginCfg>
{
	friend ManualSingleton <TargetLoginCfg>;
public:
	TargetLoginCfg();
	~TargetLoginCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const TargetLoginCfgInfo *GetTargetLoginCfgInfo(int32_t id);
	const TargetLoginCfgMap *GetTargetLoginCfgMap() { return &m_TargetLoginCfgMap; }
private:
	TargetLoginCfgMap m_TargetLoginCfgMap;
};

#define  g_MakeTargetLoginCfgTable() (TargetLoginCfg::Instance())
#define  g_GetTargetLoginCfgTable() (TargetLoginCfg::GetInstance())
#define  g_DelTargetLoginCfgTable() (TargetLoginCfg::Destroy())